<template>
  <div style="margin-bottom: 20px">
    <c-table-box hide-func :data="tableData" :table-config="tableConfig" :table-max-height="400" />
  </div>
</template>
<script>
export default {
  name: 'Progress',
  props: {
    detailData: {
      type: [String, Object, Array],
      default: ''
    }
  },
  data() {
    return {
      tableData: [],
      tableConfig: {
        setting: [
          {
            prop: 'poCode',
            label: '采购订单号'
          },
          {
            prop: 'soCode',
            label: '销售订单号'
          },
          {
            prop: 'orderState',
            label: '订单状态',
            propEnum: {
              domainCode: 'marketing',
              appCode: 'slm',
              dictTypeCode: 'ORDER_STATE'
            }
          },
          {
            prop: 'shipState',
            label: '发货状态'
          },
          {
            prop: 'packState',
            label: '打包状态'
            // propEnum: {
            //   domainCode: 'marketing',
            //   appCode: 'slm',
            //   dictTypeCode: 'BOOLEANS'
            // }
          },
          {
            prop: 'orderDesc',
            label: '说明'
          }
        ]
      }
    }
  },
  created() {
    this.tableData = this.detailData
  },
  mounted() {
  }
}
</script>
